// 在vue cli框架中@表示指向src目录
// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
// 登录
import login from '@/views/login';
// 首页
import index from '@/views/index';
import home from '@/views/home'
/**
 * 运营
 */
// 分销分佣
import distribution from '@/views/operation/distribution';
import distribution_rules from '@/views/operation/distribution_rules';
// 积分
import points from '@/views/operation/points.vue';
import points_rules from "@/views/operation/points_rules.vue";
// 已完成订单
import push_record from '@/views/operation/push_record';
//推广员管理
import push_man from "@/views/operation/push_man.vue";
/**
 * 分类管理
 */
// 分类设置



// 分类明细

/**
 * 企业管理
 */
import management from "@/views/enterprise/Management.vue";
import enedit from "@/views/enterprise/EnEdit.vue"

/**
 * 人才管理
 */
import tain from "@/views/talents/Index.vue"
import resume from "@/views/talents/Resume.vue";
import tal_doc from "@/views/talents/Documents.vue"

/**
 * banner
 */
import banner_edit from "@/views/banner/Edit.vue"
import banner_index from "@/views/banner/Index.vue"

/**
 * 考证管理
 */
import item from '@/views/item/item';
import itemAddEdit from '@/views/item/itemAddEdit'
import itemStudents from '@/views/item/itemStudents'
import itemStudentDetails from '@/views/item/itemStudentDetails'
/**
 * 培训活动
 */
import itemDetail from '@/views/train/itemDetail';
import activities from "@/views/train/activities.vue"
import editAct from "@/views/train/edit-act.vue";
import actList from "../views/train/act-list.vue";


/**
 * 课程与题库管理
 */
import onlineCourse from "@/views/onlineCourse/index"
import students from "@/views/onLineCourse/students"
import teacherLine from "@/views/onlineCourse/teacherLine"
import liveCourseEdit from "@/views/onlineCourse/liveCourseEdit"
import livePayStudent from "@/views/onlineCourse/livePayStudent"
import courseEdit from "@/views/onlineCourse/courseEdit"
import courseTable from "@/views/onlineCourse/courseTable"
import classifyTiKu from "@/views/onlineCourse/classifyTiKu"
import kaoShiSetting from "@/views/onlineCourse/kaoShiSetting"


/**
 * 订单管理
 * */
import kaoshiOrder from "@/views/order/kaoshiOrder"
import orderDetails from "@/views/order/orderDetails"
import courseOrder from "@/views/order/courseOrder"
import courseDetails from "@/views/order/courseDetails"
import personOrder from "@/views/order/personOrder"
import personDetails from "@/views/order/personDetails"
import payOrder from "@/views/order/payOrder"

/**
 * 专家师资
 * */
import teachers from "@/views/teachers/teachers"
import teacherEdit from "@/views/teachers/teacherEdit"


/**
 * 招聘管理
 */
import  jobList from  "@/views/recruitManage/jobList"
import jobDetails from "@/views/recruitManage/jobDetails"
import recritPackage from "@/views/recruitManage/recruitPackage"
import jobPackage from "@/views/recruitManage/jobPackage"

/**
 * 机构等级申请
 */
import levelEvaluation from "@/views/levelEvaluation/levelEvaluation";
import levelEvaEdit from "@/views/levelEvaluation/levelEvaEdit";

/**
 * 设置
 * */
import account from "@/views/setting/account.vue";
import dictionary from "@/views/setting/dictionary.vue";


/* * 职业竞赛
 */
import pro_index from "@/views/pro/index.vue"
import proDetails from "@/views/pro/proDetails"
import proPerson from "@/views/pro/proPerson"
import proResult from "@/views/pro/proResult"


// 测试页面
import testconfig from "@/views/pay/Config"


// 启用路由
Vue.use(Router);

// 导出路由
export default new Router({
  routes: [{
    path: '/',
    name: '',
    component: login,
    hidden: true,
    meta: {
      requireAuth: false
    }
  }, {
    path: '/login',
    name: '登录',
    component: login,
    hidden: true,
    meta: {
      requireAuth: false
    }
  }, {
    path: '/index',
    name: '首页',
    component: index,
    iconCls: 'el-icon-tickets',
    children: [
      {
        path: '/',
        name: '主页',
        component: home,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/pay/Config',
        name: '测试页面',
        component: testconfig,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/enterprises/management',
        name: '企业管理',
        component: management,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/enterprises/EnEdit",
        name: '企业信息',
        component: enedit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: "/talents/index",
        name: '人才信息',
        component: tain,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/talents/resume',
        name: '人才简历',
        component: resume,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/talents/Documents',
        name: '考证与学习情况',
        component: tal_doc,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/Role',
        name: '角色管理',
        component: null,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/operation/distribution',
        name: '分销分佣',
        component: distribution,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/operation/distribution/rules',
        name: '分销规则',
        component: distribution_rules,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/operation/points',
        name: '积分设置',
        component: points,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/operation/points/rules',
        name: '积分规则设置',
        component: points_rules,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/banner/index',
        name: 'banner管理',
        component: banner_index,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/banner/edit',
        name: 'banner编辑',
        component: banner_edit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/push/man',
        name: '推广员管理',
        component: push_man,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/push/record',
        name: '推广记录',
        component: push_record,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/item/item',
        name: '考证管理',
        component: item,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/item/itemAddEdit',
        name: '编辑考证产品',
        component: itemAddEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/item/itemStudents',
        name: '考证报考学员',
        component: itemStudents,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/item/itemStudentDetails',
        name: '学员报考资料',
        component: itemStudentDetails,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/train/itemDetail',
        name: '培训申请记录',
        component: itemDetail,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/train/activities',
        name: '培训活动',
        component: activities,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/train/edit-act',
        name: '培训活动编辑',
        component: editAct,
        meta: {
          requireAuth: true
        },
      },
      {
        path: '/train/act-list',
        name: '培训活动编辑',
        component: actList,
        meta: {
          requireAuth: true
        },
      },
      {
        path: '/onlineCourse/index',
        name: '在线课程',
        component: onlineCourse,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/onlineCourse/courseEdit',
        name: '编辑在线课程',
        component: courseEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/onlineCourse/courseTable',
        name: '课程表',
        component: courseTable,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/onlineCourse/students',
        name: '已开课学员',
        component: students,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/onlineCourse/teacherLine',
        name: '名师直播',
        component: teacherLine,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/onlineCourse/liveCourseEdit',
        name: '编辑直播课',
        component: liveCourseEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/onlineCourse/livePayStudent',
        name: '已购买学员',
        component: livePayStudent,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/onlineCourse/classifyTiKu',
        name: '分类题库',
        component: classifyTiKu,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/onlineCourse/kaoShiSetting',
        name: '模拟考试设置',
        component: kaoShiSetting,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/order/kaoshiOrder',
        name: '考证订单',
        component: kaoshiOrder,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/order/orderDetails',
        name: '考证订单详情',
        component: orderDetails,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/order/courseOrder',
        name: '课程订单',
        component: courseOrder,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/order/courseDetails',
        name: '课程订单详情',
        component: courseDetails,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/order/personOrder',
        name: '人才套餐订单',
        component: personOrder,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/order/personDetails',
        name: '人才套餐详情',
        component: personDetails,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/order/payOrder',
        name: '交易账单',
        component: payOrder,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/teachers/teachers',
        name: '专家师资',
        component: teachers,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/teachers/teacherEdit',
        name: '师资编辑',
        component: teacherEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/pro/index',
        name: '职业竞赛',
        component: pro_index,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/pro/proDetails',
        name: '职业竞赛详情',
        component: proDetails,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/pro/proPerson',
        name: '参赛者',
        component: proPerson,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/pro/proResult',
        name: '结果公示',
        component: proResult,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/recruitManage/jobList',
        name: '岗位列表',
        component: jobList,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/recruitManage/jobDetails',
        name: '岗位详情',
        component: jobDetails,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/recruitManage/recruitPackage',
        name: '套餐设置',
        component: recritPackage,
        meta: {
          requireAuth: true
        },
      },
      {
        path: '/recruitManage/jobPackage',
        name: '岗位模板设置',
        component: jobPackage,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/levelEvaluation/levelEvaluation',
        name: '等级评价机构',
        component: levelEvaluation,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/levelEvaluation/levelEvaEdit',
        name: '编辑等级评价机构',
        component: levelEvaEdit,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/setting/account',
        name: '账号信息',
        component: account,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/user',
        name: '基础设置',
        component: null,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/user',
        name: '客服设置',
        component: null,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/user',
        name: '账号员工及权限',
        component: null,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/system/user',
        name: '通知设置',
        component: null,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/setting/dictionary',
        name: '数字字典',
        component: dictionary,
        meta: {
          requireAuth: true
        }
      }
    ]
  }]
})
